package com.first.community.exception;

public enum CustomizeErrorCode  implements ICustomizeErrorCode{
    SUCCESS( 200,"登陆成功"),
    QUESTION_NOT_FOUND( 2000,"你找到问题不在了，要不要换个试试？"),
    NOT_LOGIN( 2001,"没有登陆，请登陆"),
    SYSTEM_ERROR( 5000,"系统错误"),
    TYPE_PARAM_WRONG( 500234,"类型错误"),
    TARGET_COMMENT_NOT_FOUND( 5002234,"评论不存在"),
    COMMENT_CONTENT_NOT_NULL( 5234234,"评论的内容不能为空"),
    NOTIFICATION_NOT_FOUND( 23423,"评论未找到"),
    READ_NOTIFICATION_FAIL( 234423,"读通知失败"),
    TARGET_NOT_SELECT( 2002,"没有选中问题");

    CustomizeErrorCode(Integer code ,String message) {
            this.code=code;
            this.message=message;
    }

    private  Integer code;
    private  String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
